package com.wondertek.service.dto.sys.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

;

/**
 * @author xqs
 */
@Data
public class SysUserRestPasswordReq {

    private String userId;

    @NotBlank(message = "password.not.null")
    @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\d).{8,20}", message = "password.length")
    @Schema(name = "newPassword", description = "新密码")
    private String newPassword;

}
